home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group96b.txt
/
000024_icon-group-sender _Tue Oct 15 03:16:10 1996.msg
< prev
next >
Wrap
Internet Message Format
|
1997-01-02
|
974b
Received: by cheltenham.cs.arizona.edu; Tue, 15 Oct 1996 08:26:24 MST
Date: 15 Oct 96 11:15:15 BST
From: R J Hare <rjhare@tattoo.ed.ac.uk>
Subject: A question of style
To: icon-group@cs.arizona.edu
Reply-To: rjhare@ed.ac.uk
Organisation: Edinburgh University Computing Services
Message-Id: <9610151115.aa17886@uk.ac.ed.tattoo>
Errors-To: icon-group-errors@cs.arizona.edu
I have a program in which I have several routines which open by
flashing a dialogue window at the user asking them to set values, etc.
All the dialogue windows have default values set and also have the usual
"OK", "Cancel" buttoms at the bottom. If I elect to change my mind and
cancel the operation, should the way out of the routine be via 'return'
or 'fail'? Note that in no case will I be actually using the returned value
of the routine. This seems to be question of programming style and I can't
decide which is 'best'...
Any opinions gratefully received...
Roger Hare